import request from '@/utils/request'

// 查询账户流水列表
export function listTrace(query) {
  return request({
    url: '/price/trace/list',
    method: 'get',
    params: query
  })
}

// 查询账户流水详细
export function getTrace(traceSn) {
  return request({
    url: '/price/trace/' + traceSn,
    method: 'get'
  })
}

// 新增账户流水
export function addTrace(data) {
  return request({
    url: '/price/trace',
    method: 'post',
    data: data
  })
}

// 修改账户流水
export function updateTrace(data) {
  return request({
    url: '/price/trace',
    method: 'put',
    data: data
  })
}

// 删除账户流水
export function delTrace(traceSn) {
  return request({
    url: '/price/trace/' + traceSn,
    method: 'delete'
  })
}
